<?php

namespace App\Repositories\Personnel;

use App\Models\Personnel\Station;
use App\Presenters\Personnel\StationPresenter;
use App\Repositories\BaseRepository;
use App\Validators\Personnel\StationValidator;
use Prettus\Repository\Criteria\RequestCriteria;

/**
 * Class StationRepositoryEloquent
 * @package namespace App\Repositories\Personnel;
 */
class StationRepositoryEloquent extends BaseRepository implements StationRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return Station::class;
    }

    /**
    * Specify Validator class name
    *
    * @return mixed
    */
    public function validator(){

        return StationValidator::class;
    }


    public function boot(){
        $this->pushCriteria(app(RequestCriteria::class));
    }

    public function presenter(){
        return StationPresenter::class;
    }
}
